﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcApplication1.Models
{
    public class KhachHang
    {
        private string _hoTen;
        private string _email;
        private string _matKhau;
        private string _diaChi;
        private string _thanhPho;
        private string _soDienThoaiNha;
        private string _soDiDong;
        private List<SanPhamDangKy> _sanPhamDangKy;

        public List<SanPhamDangKy> sanPhamDangKy
        {
            set
            {
                _sanPhamDangKy = value;
            }
            get
            {
                return _sanPhamDangKy;
            }
        }

        public string hoTen
        {
            set
            {
                _hoTen = value;
            }
            get
            {
                return _hoTen;
            }
        }

        public string email
        {
            set
            {
                _email = value;
            }
            get
            {
                return _email;
            }
        }

        public string matKhau
        {
            set
            {
                _matKhau = value;
            }
            get
            {
                return _matKhau;
            }
        }

        public string diaChi
        {
            set
            {
                _diaChi = value;
            }
            get
            {
                return _diaChi;
            }
        }

        public string thanhPho
        {
            set
            {
                _thanhPho = value;
            }
            get
            {
                return _thanhPho;
            }
        }

        public string soDienThoaiNha
        {
            set
            {
                _soDienThoaiNha = value;
            }
            get
            {
                return _soDienThoaiNha;
            }
        }

        public string soDienThoaiDiDong
        {
            set
            {
                _soDiDong = value;
            }
            get
            {
                return _soDiDong;
            }
        }
    }

    public class SanPhamDangKy
    {
        private SanPham _sanPham;
        private DateTime _ngayMuaHang;

        public SanPham sanPham
        {
            set 
            {
                _sanPham = value;
            }
            get
            {
                return _sanPham;
            }
        }

        public DateTime ngayMuaHang
        {
            set
            {
                _ngayMuaHang = value;
            }
            get
            {
                return _ngayMuaHang;
            }
        }
    }
}